home *** CD-ROM | disk | FTP | other *** search
-
-
-
- gggglllluuuuUUUUnnnnPPPPrrrroooojjjjeeeecccctttt((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee gggglllluuuuUUUUnnnnPPPPrrrroooojjjjeeeecccctttt((((3333GGGG))))
-
-
-
- NNNNAAAAMMMMEEEE
- gggglllluuuuUUUUnnnnPPPPrrrroooojjjjeeeecccctttt - map window coordinates to object coordinates
-
-
- CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN
- GLint gggglllluuuuUUUUnnnnPPPPrrrroooojjjjeeeecccctttt( GLdouble _w_i_n_X,
- GLdouble _w_i_n_Y,
- GLdouble _w_i_n_Z,
- const GLdouble *_m_o_d_e_l,
- const GLdouble *_p_r_o_j,
- const GLint *_v_i_e_w,
- GLdouble* _o_b_j_X,
- GLdouble* _o_b_j_Y,
- GLdouble* _o_b_j_Z )
-
-
- PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS
- _w_i_n_X, _w_i_n_Y, _w_i_n_Z
- Specify the window coordinates to be mapped.
-
- _m_o_d_e_l Specifies the modelview matrix (as from a ggggllllGGGGeeeettttDDDDoooouuuubbbblllleeeevvvv
- call).
-
- _p_r_o_j Specifies the projection matrix (as from a ggggllllGGGGeeeettttDDDDoooouuuubbbblllleeeevvvv
- call).
-
- _v_i_e_w Specifies the viewport (as from a ggggllllGGGGeeeettttIIIInnnntttteeeeggggeeeerrrrvvvv call).
-
- _o_b_j_X, _o_b_j_Y, _o_b_j_Z
- Returns the computed object coordinates.
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- gggglllluuuuUUUUnnnnPPPPrrrroooojjjjeeeecccctttt maps the specified window coordinates into object
- coordinates using _m_o_d_e_l, _p_r_o_j, and _v_i_e_w. The result is stored in _o_b_j_X,
- _o_b_j_Y, and _o_b_j_Z. A return value of GGGGLLLL____TTTTRRRRUUUUEEEE indicates success; a return
- value of GGGGLLLL____FFFFAAAALLLLSSSSEEEE indicates failure.
-
- To compute the coordinates (_o_b_j_X, _o_b_j_Y, and _o_b_j_Z), gggglllluuuuUUUUnnnnPPPPrrrroooojjjjeeeecccctttt
- multiplies the normalized device coordinates by the inverse of _m_o_d_e_l*_p_r_o_j
- as follows:
-
-
-
-
-
-
- (||||( WobjZobjYobjX )||||) = INV(PM)(||||||||( 12(winZ) - 1view[3]2(winY - view[1])_________________ - 1view[2]2(winX - view[0])_________________ - 1 )||||||||)
-
-
-
- PPPPaaaaggggeeee 1111
-
-
-
-
-
-
- gggglllluuuuUUUUnnnnPPPPrrrroooojjjjeeeecccctttt((((3333GGGG)))) OOOOppppeeeennnnGGGGLLLL RRRReeeeffffeeeerrrreeeennnncccceeee gggglllluuuuUUUUnnnnPPPPrrrroooojjjjeeeecccctttt((((3333GGGG))))
-
-
-
- INV() denotes matrix inversion. W is an unused variable, included for
- consistent matrix notation.
-
- SSSSEEEEEEEE AAAALLLLSSSSOOOO
- ggggllllGGGGeeeetttt, gggglllluuuuPPPPrrrroooojjjjeeeecccctttt
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PPPPaaaaggggeeee 2222
-
-
-
-